#ifndef BUZZER_H
#define BUZZER_H

#include "system_config.h"
#include "system_types.h"
#include "device.h"

#define BUZZER_CTRL					BUZZER_OUTPUT

#define beep()							buzzer_beep()
#define beepex(n)						buzzer_beepex(n)
#define beepsync(n)					buzzer_beep_synchronous(n)

void buzzer_callback();

void buzzer_init(function * fpstart, function * fpstop);

void buzzer_beep();

void buzzer_beepex(unsigned char n);

void buzzer_beep_synchronous(unsigned char n);

void buzzer_beep_asynchronous(unsigned int on_time, unsigned off_time, unsigned char repeat);


#endif /* BUZZER_H */